<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateMedalsTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('medals', function(Blueprint $table)
		{
			$table->increments('id');
			$table->integer('userid');
			$table->string('class', 64)->default('');
			$table->string('title')->default('');
			$table->string('remark')->default('');
			$table->timestamps();
		});
        DB::update('ALTER TABLE medals AUTO_INCREMENT = 45');
	}


	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('medals');
	}

}
